package com.reportgenerate.marketreport.entity;

import com.reportgenerate.myinterface.CreateBy;
import com.reportgenerate.myinterface.CreateTime;
import com.reportgenerate.myinterface.UpdateBy;
import com.reportgenerate.myinterface.UpdateTime;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program: reportgenerate
 * @Description: 数据库模型设计时抽出所有通用字段，抽象为父类
 * @author: Mr.Cheng
 * @Email: ccelephant_518@126.com
 * @date: 2023/8/20 23:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class BaseEntity {
    @ApiModelProperty(value = "创建人")
    @CreateBy
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @CreateTime
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @UpdateBy
    private String updateBy;

    @ApiModelProperty(value = "创建时间")
    @UpdateTime
    private Date updateTime;
}
